package com.beiding.businessplatform.base;

import com.beiding.businessplatform.data.Be;
import com.example.demo.auto.entity.ABe;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Map;

public interface DaoBase<T extends Be> extends JpaRepository<T, String> {

    List<T> findList(String ql, Map<String, ?> holder);

    T findOne(String ql, Map<String, ?> holder);

    List<T> findList(String ql, Map<String, ?> holder, int pageIndex, int pageSize);

    List<Map<String, Object>> queryList(String ql, Map<String, Object> holderData);

    Map<String, Object> queryOne(String ql, Map<String, Object> holderData);

}
